<!DOCTYPE html>
<html lang="en" xmlns:shiro="http://www.thymeleaf.org/thymeleaf-extras-shiro">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<h1>人力资源管理系统</h1>
<shiro:authenticated>
    <h3>你好，xxx</h3>
    <a th:href="@{/ty/logout}">退出登录</a>
</shiro:authenticated>
<shiro:notauthenticated>
    <h3>游客，<a th:href="@{/ty/login}">请登录</a></h3>
</shiro:notauthenticated>
<shiro:hasRole name="admin">
    <div>
        <a>保存</a>
    </div>
</shiro:hasRole>
<div>
    <a>更新</a>
</div>
<shiro:hasPermission name="user:list">
    <div>
        <a>删除</a>
    </div>
</shiro:hasPermission>

<div>
    <a>分页</a>
</div>
</body>
</html>